package com.weige.conver.handler;

import java.util.HashMap;
import java.util.Map;

public enum ConverTypeEnum {

    //温湿度传感器
    TEM_HUM("0", "com.weige.conver.handler.TemHumHandler"),
    //水浸传感器
    WATER("1", "com.weige.conver.handler.WaterHandler"),
    //烟雾传感器
    SMOKE("2", "com.weige.conver.handler.SmokeHandler"),
    //氧气传感器
    OXYGEN("3", "com.weige.conver.handler.OxygenHandler"),
    //六氟化硫传感器
    SF6("4", "com.weige.conver.handler.Sf6Handler"),
    //电子围栏
    FENCE("5", "com.weige.conver.handler.FenceHandler"),
    //门禁
    DOOR("6", "com.weige.conver.handler.DoorHandler"),
    //其他类型
    OTHER("7", "com.weige.conver.handler.OtherHandler"),
    //风速传感器
    WIND("8", "com.weige.conver.handler.WindHandler"),
    //控制器
    CONTROL("9", "com.weige.conver.handler.ControlHandler"),
    //六氟化硫告警器
    SF6_ALARM("10","com.weige.conver.handler.Sf6AlarmHandler"),
    //液位监测
    LIQUID_LEVEL("11","com.weige.conver.handler.LiquidLevelHandler"),
    //氧气报警器
    OXYGEN_ALARM("12", "com.weige.conver.handler.OxygenAlarmHandler"),
    //消防安全告警器
    FIRE_ALARM("21", "com.weige.conver.handler.FireAlarmlHandler"),
    //油位传感器
    OIL_LEVEL("22", "com.weige.conver.handler.OilLevelHandler"),
    //气体压力测量传感器
    GAS_PRESSURE("23", "com.weige.conver.handler.GasPressurelHandler"),
    //气体密度测量传感器
    GAS_DENSITY("24", "com.weige.conver.handler.GasDensitylHandler"),
    //水浸传感器
    WATER_ALARM("25", "com.weige.conver.handler.WaterAlarmHandler"),
    //温度传感器
    Temperature("26", "com.weige.conver.handler.TemperatureHandler"),
    //湿度传感器
    Humidity("27", "com.weige.conver.handler.HumidityHandler"),
    //红外传感器
    INFRARED("41", "com.weige.conver.handler.InfraredHandler"),
    //时控天数代码
    TIME_CONTROL_DAYS_CODE("42", "com.weige.conver.handler.TimeControlDaysCodeHandler"),
    //标志寄存器
    FLAG_REGISTER("43", "com.weige.conver.handler.FlagRegisterHandler");


    private String type;
    private String clazz;

    public static Map<String, String> getAllClazz() {
        Map<String, String> map = new HashMap<String, String>();
        for (ConverTypeEnum converTypeEnum : ConverTypeEnum.values()) {
            map.put(converTypeEnum.getType(), converTypeEnum.getClazz());
        }
        return map;
    }


    ConverTypeEnum(String type, String clazz) {
        this.type = type;
        this.clazz = clazz;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }
}
